#!/bin/bash

menu=(aaa bbb ccc ddd)

select var in ${menu[*]}
do
    [ -n $var ] && break
done

echo "choice is:" $var
